import createAxios from '/@/utils/axios'

export const indexUrl = '/admin/v1/customer/'


export function customerDetail(id: string) {
    return createAxios({
        url: indexUrl + 'detail',
        method: 'get',
        params: {
            id: id,
        },
    })
}
//处理客户申请
export function handleCustomer(param:anyObj) {
    return createAxios({
        url: indexUrl + 'handle-customer',
        method: 'POST',
        data:param
    },
    {
        loading: true,
    })
}